package uk.co.agileworks.bidpirate.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public final class CurrencyAndPrice {

	private String currency;
	private Double price;

	public CurrencyAndPrice(String currency, Double price) {
		this.currency = currency;
		this.price = price;
	}

	@Override
	public boolean equals(Object that) {
		return EqualsBuilder.reflectionEquals(this, that);
	}

	public String getCurrency() {
		return currency;
	}

	public Double getPrice() {
		return price;
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
